

const proxy = require('http-proxy-middleware')


module.exports = app => {
  app.use(proxy.createProxyMiddleware("/before",
    {
      target: 'http://47.102.145.189:8009',   //这里是服务器接口地址
      changeOrigin: true,
      pathRewrite: {
        '^/before': ""
      }
    })
  )
}
